<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace app\assets;

use yii\web\AssetBundle;
use yii;

/**
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class IndexAsset extends AssetBundle
{
    public function init(){
      parent::init();
      $this->baseUrl = '@web/'. Yii::$app->params['envDir'];
      $this->basePath = Yii::getAlias('@webroot').'/'. Yii::$app->params['envDir'];
      array_unshift($this->js, YII_ENV_PROD ? '//cdn.vamaker.com/static/require-2.1.18.min.js' : 'js/libs/require.js');
    }
    public $jsOptions = ['position' => \yii\web\View::POS_HEAD];
    public $css = [
      'css/site/login.css'
    ];

    public $js = [
      'js/libs/func.js',
    ];
    
    public $depends = [
      // 'app\assets\AppAsset'
    ];
}
